const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
   
    proxy: {
      '/api': {
       // 此处的写法，目的是为了 将 /api 替换成 https://www.baidu.com/
          target: 'http://localhost',
       // 允许跨域
          changeOrigin: true,
          ws: true,
          pathRewrite: {
            '^/api': '/test/'
          }
       }
  } 
  }
})
